
#pragma once

//

/////////////////////////////////////////////////////////////////////////////
// CMyEdit window

class CMyEdit : public ATL::CWindowImpl<CMyEdit,CEdit>
{
// Construction
public:
	CMyEdit();
	BOOL m_bMove;
// Attributes
public:
// Operations
public:

	BEGIN_MSG_MAP(CMyEdit)

        MESSAGE_HANDLER(WM_CREATE  , OnCreate)
	//	MESSAGE_HANDLER(WM_DESTROY,  OnDestroy)
		MSG_WM_SETFOCUS(OnSetFocus)
		MSG_WM_CTLCOLOREDIT(CtlColor)
		MSG_WM_MOUSEMOVE(OnMouseMove)
		//MSG_WM_SIZE(OnSize)
		MSG_WM_ERASEBKGND(OnEraseBkgnd)	

    END_MSG_MAP()
// Implementation
public:
	virtual ~CMyEdit();
	
	// Generated message map functions
protected:
	 LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

	void OnMouseMove(UINT nFlags, CPoint point);
	void OnSetFocus(HWND pOldWnd);
	HBRUSH CtlColor(CDCHandle dc, CEdit edit);
	BOOL OnEraseBkgnd(CDCHandle dc);


};

